home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / TUTORC.ZIP / TCCFILES.ZIP / TCHEADR.H < prev    next >
C/C++ Source or Header  |  1994-10-30  |  2KB  |  62 lines

  1. /*
  2.   tutheadr.h
  3.   10/30/94 
  4.   SCP
  5.   Adapted from tutprog4.pas, translated into C.
  6.   header file for the Turbo C version of the wormie program
  7. */
  8.  
  9. #include <stdio.h>
  10. #include <stdlib.h>
  11. #include <dos.h>
  12. #include <math.h>
  13. #include <conio.h>
  14. #include <graphics.h>
  15. #include <bios.h>
  16. #include <string.h>
  17.  
  18. #define VGA 0xa000
  19. #define PI (float) 3.14159
  20.  
  21. struct Point
  22. {
  23.   float x;
  24.   float y;
  25.   float z;
  26. }; 
  27.  
  28. char  Virtual[(unsigned)64000];  // Virtual Screen.
  29. char  Virtual2[(unsigned)64000];  // Virtual Screen.
  30. char far* VirtPtr;
  31. char far* VirtPtr2;
  32. unsigned int Vaddr;
  33. unsigned int Vaddr2;
  34. char Pall[256][3];
  35. char Pall2[256][3];
  36.  
  37. void SetMCGA();
  38. void SetText();
  39. void WaitRetrace();
  40. void GetPal(char ColorNo, char* R, char* G, char* B);
  41. void Pal(char ColorNo, char R, char G, char B);
  42. void PutPixel(int X, int Y, char Color, int Where);
  43. void Line(int x1, int y1, int x2, int y2, unsigned char Color);
  44. void Line2(int x1, int y1, int x2, int y2, unsigned char Color, int where);
  45. void Funny_Line(int x1, int y1, int x2, int y2, int Where);
  46. void PalPlay();
  47. void rotatepal(char locpal[][3], int start, int end);
  48. void GrabPallette();
  49. void Blackout();
  50. void FadeUp();
  51. void FadeDown();
  52. void RestorePallette();
  53. void Cls(char Color, int Where);
  54. void Flip();
  55. void Flip2(int Source, int Dest);
  56. // int random(int x);
  57. float rad(float theta);
  58. int round(float x);
  59. void SetUpVirtual();
  60. void Hline(int x1, int x2, int y, char col, int where);
  61. void PutPixel2(int x, int y, char col, int where);
  62.